<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<style>
#i_select_files0 {
 width:120px;
}

#i_select_files0 a {
 width:90px;
 margin-left:15px;
 text-align:center
}

</style>
<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/scripts/lib/stream/css/stream-v1.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/lib/stream/js/stream-v1.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/lib/stream/js/streamMiniExpand.js"></script>
<form id="com-form" name="ui-adminlte-form" enctype="multipart/form-data"
	data-toggle="validator" role="form" method="post"
	container = "div.left"
	action="${pageContext.request.contextPath}/user/com!save.action"
	forward-action="${pageContext.request.contextPath}/user/dept!treeList.action?callback=ztreeClick">
	<s:token></s:token>
	<input name="entity.comId" type="hidden" value="${entity.comId }">
	<input name="id" type="hidden"  value="${entity.comId }" >

	<div class="form-group">
		<label>企业名称</label>
		<input type="text" name="entity.comName" value="${entity.comName}"
				class="form-control required"
				remote="${pageContext.request.contextPath}/user/com!checkName.action?id=${entity.comId }"
				placeholder="输入企业名称"/>
	</div>
	<div class="form-group">
		<label>企业地址 </label>
			<input type="text" name="entity.comAddress" value="${entity.comAddress}"
			class="form-control required"
			placeholder="输入企业地址  "/>

	</div>
	<div class="form-group">
		<label>企业Logo</label>
		<div>
			<img style="background-color:#ddd;border-radius:4px;min-width:140px;min-height:140px;" alt="logo" src="${pageContext.request.contextPath}/sys/file!download.action?fileId=${entity.logoPath}" width="40px" height="40px"></img>
		</div>
		<div id="uploadLogoId">
			<input name="uploadFileId" class="stream_upload" type="text"/>
		</div>
	</div>
</form>

<script>
	$( function() {
		form.init();
	});
	var streamConfig = {
		basePath:"${pageContext.request.contextPath}",
		showImg:true,
		simLimit:1,//文件上传个数1个
		extFilters : [ ".PNG", ".BMP", ".GIF", ".JPG", ".JPEG" ],//允许上传文件的扩展名
	};
	initStreamConfig(streamConfig);
</script>
